{% extends "tj3/tj3.html" %}

{% block navigation %}
	<script type="text/javascript">
		$('document').ready(function(){
			$('#update_btn').button();
			$('#delete_btn').button();
		});
	</script>
{% endblock navigation %}

{% block content  %} 

<h1 class="ui-widget ui-widget-header">Editing Resource
<a href={% url resource_create %} class="float_right ui-icon ui-icon-plusthick" title="Create a new resource"></a>
</h1>
<div class="ui-widget ui-widget-content">

	<form action="." method="post" enctype="multipart/form-data">

	<div class="mycontent">
		<table>
			<tbody>
			{{ resource_formset.management_form }}
			{{ resource_formset }}
			</tbody>
		</table>
	</div>	
	<div class="float_right mycontent">
		<input id="update_btn" type="submit" name="command" value="Update" class="button" />
		<input id="delete_btn" type="submit" name="command" value="Delete" class="button" />
	</div>
	</form>
	
</div>
{% endblock content %}
